package com.bao.system.service.impl;

import com.bao.system.entity.Effect;
import com.bao.system.mapper.EffectMapper;
import com.bao.system.service.EffectService;
import com.bao.vo.EffectVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bao
 * @since 2021-06-10
 */
@Service
public class EffectServiceImpl extends ServiceImpl<EffectMapper, Effect> implements EffectService {

    @Autowired
    EffectMapper effectMapper;

    @Override
    public IPage<Effect> findEffectPage(Page<Effect> page, EffectVO effectVO) {
        return effectMapper.findEffectPage(page, effectVO);
    }

    @Override
    public void deleEffet(Integer id) {
        effectMapper.deleEffet(id);
    }

    @Override
    public void addEffect(Effect effect) {
        effectMapper.addEffect(effect);
    }

    @Override
    public void examineEffect(Integer id) {
        effectMapper.examineEffect(id);
    }
}
